package com.ym.b2b.salesman.dao;

import org.springframework.dao.DataAccessException;

import com.ym.b2b.salesman.sqlbean.EmBSalesman;
import com.zc.commons.base.Page;

public interface EmBSalesmanDAO {

    public Long searchPageEmBSalesmanNum(EmBSalesman emBSalesman) throws DataAccessException;

    public Page searchPageEmBSalesman(EmBSalesman emBSalesman, Page<EmBSalesman> page) throws DataAccessException;

    void insertEmBSalesman(EmBSalesman record) throws DataAccessException;

    int updateEmBSalesman(EmBSalesman record) throws DataAccessException;

    int updateEmBSalesmanForType1(EmBSalesman record) throws DataAccessException;

    int updateEmBSalesmanForType2(EmBSalesman record) throws DataAccessException;

    EmBSalesman searchEmBSalesman(Long salesmanId) throws DataAccessException;

    void deleteEmBSalesman(EmBSalesman emBSalesman) throws DataAccessException;

    public EmBSalesman showEmBSalesmanDetail(EmBSalesman emBSalesman) throws DataAccessException;

    void deleteMultipleEmBSalesmans(String salesmanIdList);
}
